package de.hska.util;

public interface WebConstants {
	String FWD_START = "start";
	String FWD_ERROR = "error";
	String FWD_ACCESS_DENIED = "accessDenied";
	
	String FWD_KUNDE_DETAILS = "kvPanelGridDetails";
	String FWD_KUNDE_DETAILS_TAB_PANEL = "kvTabPanelDetails";
	String FWD_KUNDE_UPDATE = "kvUpdateEinenKunden";
	String FWD_KUNDE_UPDATE_MANY = "kvUpdateMehrereKunden";
	
	String FWD_BESTELLUNG_ARTIKEL_AUSWAEHLEN = "bvArtikelAuswaehlen";
	String FWD_BESTELLUNG_WARENKORB = "bvWarenkorb";
	String FWD_BESTELLUNG_ABSCHICKEN = "bvAbschicken";
	String FWD_BESTELLUNG_BESTAETIGUNG = "bvBestaetigung";
	
	String PATH_FIND = "/kundenverwaltung/find.xhtml";
	String PATH_DATA_TABLE_AUFLISTEN = "/kundenverwaltung/dataTableAuflisten.xhtml";
	String PATH_COMMAND_BUTTON = "/kundenverwaltung/commandButton.xhtml";
	String PATH_COMMAND_LINK = "/kundenverwaltung/commandLink.xhtml";
	String PATH_CONTEXT_MENU = "/kundenverwaltung/contextMenu.xhtml";
	String PATH_DOUBLECLICK = "/kundenverwaltung/doubleclick.xhtml";
	String PATH_TABELLE_UPDATE_MEHRERE = "/kundenverwaltung/tabelleUpdateMehrereKunden.xhtml";
	
	String CLIENTID_FIND_NACHNAME = "findForm:nachname";
	String CLIENTID_CREATE_EINEN_KUNDEN_NACHNAME = "createForm:nachname";
	String CLIENTID_CREATE_MEHRERE_KUNDEN_NACHNAME_PREFIX = "neueKundenForm:neueKundenTabelle:";
	String CLIENTID_CREATE_MEHRERE_KUNDEN_NACHNAME_SUFFIX = ":nachname";
	
	String CLIENTID_SELECT_FORM = "selectForm";
	
	String CLIENTID_UPDATE_EINEN_KUNDEN_ID = "updateForm:id";
	String CLIENTID_UPDATE_MEHRERE_KUNDEN_ID_PREFIX = "updateKundenForm:updateKundenTabelle:";
	String CLIENTID_UPDATE_MEHRERE_KUNDEN_ID_SUFFIX = ":id";
	String CLIENTID_UPLOAD_DATEI = "uploadForm:datei";
	
	int ANZ_NEUE_KUNDEN = 3;
	
	String PRIVATKUNDE = "Privatkunde";
	String FIRMENKUNDE = "Firmenkunde";
	
	String RESOURCE_BUNDLE = "de.hska.nls.hska";
	
	String WARN_KUNDE_NOT_FOUND_BY_NACHNAME = "warn.kunde.notFoundByNachname";
	
	String ERROR_KUNDE_DELETE_BESTELLUNGEN = "error.kunde.delete.bestellungen";
	String ERROR_KUNDE_CREATE_ADRESSE = "error.kunde.create.adresse";
	String ERROR_KUNDE_CREATE_DUPLIKAT = "error.kunde.create.duplikat";
	
	String ERROR_KUNDE_UPDATE_DUPLIKAT = "error.kunde.update.duplikat";
	String ERROR_KUNDE_UPDATE_DELETED = "error.kunde.update.deleted";
	String ERROR_KUNDE_UPDATE_UPDATED = "error.kunde.update.updated";
	
	String ERROR_UPLOAD = "error.upload";
	
	String ERROR_INTERNAL = "error.internal";
	
	String ERROR_VALIDATOR_EMAIL = "error.validator.email";
	String ERROR_VALIDATOR_CREDITCARD = "error.validator.creditcard";
	String ERROR_VALIDATOR_URL = "error.validator.url";
	String ERROR_VALIDATOR_EQUAL_FOR_NOT_FOUND = "error.validator.equal.forNotFound";
	String ERROR_VALIDATOR_EQUAL_NOT_EDITABLE_VALUEHOLDER = "error.validator.equal.notEditableValueHolder";

	String EMAIL_VALIDATOR_ID = "de.hska.validator.email";
	String CREDITCARD_VALIDATOR_ID = "de.hska.validator.creditCard";
	String URL_VALIDATOR_ID = "de.hska.validator.url";
	String REGEXP_VALIDATOR_ID = "de.hska.validator.regExp";
	String EQUAL_VALIDATOR_ID = "de.hska.validator.equal";
	
	String AUTHENTICATION_UI_BEAN = "auth";
	String BESTELLVERWALTUNG_UI_BEAN = "bv";
}
